<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>单向绑定</title>
</head>
<body>
    <div id="app">
        <a v-bind:href="url">gogogo</a>

        <div v-bind:style="{color: fontColor, fontSize: fontSize}">加油</div>


        <div v-bind:class="{active: isActive, 'text-danger': hasErr}">加油11</div>
    </div>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script>
        // 1、声明式渲染
        let vm = new Vue({
            el: '#app',
            data: {
                url: "http://www.baidu.com",
                fontColor: 'red',
                fontSize: '20px',
                isActive: true,
                hasErr: true
            }
        });

        // 2、v-model 双向绑定，模型变化，视图变化。反之亦然。

        // 3、事件处理



    </script>
</body>
</html>